<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<script>
  {
    let a = 5;
    {
      console.log(a);  // => 5
    }
  }
</script>
</body>
</html>